Skip to content

Use UID/GID 1001 for runner user/group#3

Merged
chrisnovakovic merged 1 commit intoplease-build:masterfrom
chrisnovakovic:runner-uid-gid
Dec 2, 2025
Merged

Use UID/GID 1001 for runner user/group#3
chrisnovakovic merged 1 commit intoplease-build:masterfrom
chrisnovakovic:runner-uid-gid

Conversation

@chrisnovakovic
Copy link
Contributor

@chrisnovakovic chrisnovakovic commented Dec 2, 2025

When running a GHA job in a container, the runner transparently mounts the workspace as a volume inside the container. This directory is owned by the runner image's runner user, which on GitHub's official Ubuntu images has the UID 1001 and GID 1001. Use the same UID and GID for the runner user inside the alpine-builder image to eliminate permission errors when attempting to write to the workspace (e.g. by checking out code) inside the alpine-builder image.

When running a GHA job in a container, the runner transparently mounts
the workspace as a volume inside the container. This directory is owned
by the runner image's `runner` user, which on GitHub's official Ubuntu
images has the UID 1001 and GID 1001. Use the same UID and GID for the
`runner` user inside the alpine-builder image to eliminate errors when
attempting to write to the workspace (e.g. by checking out code) inside
the alpine-builder image.
@chrisnovakovic chrisnovakovic merged commit 09c7f45 into please-build:master Dec 2, 2025
1 check passed
@chrisnovakovic chrisnovakovic deleted the runner-uid-gid branch December 2, 2025 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants